/**
 * 商品页js
 */
angular.module('app.goods', [
    ])

    .config(function($stateProvider, $urlRouterProvider) {
        $stateProvider
        // 商品页
            .state('main.goods', {
                url : '/goods',
                templateUrl : 'app/goods/goods.html',
                controller : 'GoodsController'
            })
    })

    // 商品控制器
    .controller('GoodsController', function($scope, GoodsService) {
        $scope.goodslist = GoodsService.getgoodslist();
        //$rootScope.buycount = ShoppingCartService.getcount();
        // 呼叫
        $scope.call = function(info) {
            //CallService.callservant($scope.rid, $scope.dtid, info);
        }
    })
;